package edu.xpu.compute.recommend.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Setter
@Getter
@NoArgsConstructor
@Entity(name="SYS_USER_BOOK_RATING")
@Table(name="SysUserBookRating")
@IdClass(value=UserBookUnionPk.class)
public class SysUserBookRating {

	/*
	 * 用户id
	 */
	@Id
	private Long userGuid;
	private String userName;
	/*
	 * 图书id
	 */
	@Id
	private Long bookGuid;
	private String bookName;
	/*
	 * 评分信息
	 */
	private Float rating;
	/*
	 * 评分时间戳
	 */
	private Long ratingTimestrap;
	
	private Date createDate;
}
